/*
 * @Date: 2022-03-01 09:31:15
 * @Author: 陶子
 * @LastEditTime: 2022-05-10 15:04:02
 * @FilePath: \jk_one-stop_pc\src\views\baseManagement\maintain\malfunctionRepair\malfunctionColumn.js
 * @pageName: 这是--(故障报修所有的列)--页面
 */
export let columns = [
  {
    title: '报修编号',
    dataIndex: 'repairCode',
    ellipsis: true,
    align: 'left',
    fixed: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'repairCode',
    },
  },
  {
    title: '设备编号',
    dataIndex: 'deviceCode',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'deviceCode',
    },
  },
  {
    title: '设备名称',
    dataIndex: 'deviceName',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'deviceName',
    },
  },
  {
    title: '设备类别',
    dataIndex: 'deviceCategory',
    ellipsis: true,
    width: 100,
    scopedSlots: { customRender: 'deviceCategory' },
  },
  {
    title: '维修状态',
    dataIndex: 'repairStatusList',
    ellipsis: true,
    width: 110,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'statusText',
    },
  },
  {
    title: '故障描述',
    dataIndex: 'faultDescription',
    ellipsis: true,
    width: 200,
    scopedSlots: { customRender: 'faultDescription' },
  },
  {
    title: '紧急程度',
    dataIndex: 'urgencyText',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'urgencyText' },
  },
  {
    title: '发生时间',
    dataIndex: 'happenTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'happenTime' },
  },
  {
    title: '提交时间',
    dataIndex: 'createTime',
    ellipsis: true,
    width: 180,
    sorter: true,
  },
  {
    title: '提交人',
    dataIndex: 'createByText',
    ellipsis: true,
    width: 100,
  },
  // {
  //   fixed: 'right',
  //   title: '操作',
  //   align: 'left',
  //   width: 114,
  //   dataIndex: 'actions',
  //   scopedSlots: { customRender: 'actions' },
  // },
]
export let allColumn = [
  {
    title: '报修编号',
    dataIndex: 'repairCode',
    ellipsis: true,
    align: 'left',
    fixed: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'repairCode',
    },
  },
  {
    title: '设备编号',
    dataIndex: 'deviceCode',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'deviceCode',
    },
  },
  {
    title: '设备名称',
    dataIndex: 'deviceName',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'deviceName',
    },
  },
  {
    title: '设备类别',
    dataIndex: 'deviceCategory',
    ellipsis: true,
    width: 100,
    scopedSlots: { customRender: 'deviceCategory' },
  },
  {
    title: '维修状态',
    dataIndex: 'repairStatusList',
    ellipsis: true,
    width: 110,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'statusText',
    },
  },
  {
    title: '故障描述',
    dataIndex: 'faultDescription',
    ellipsis: true,
    width: 200,
    scopedSlots: { customRender: 'faultDescription' },
  },
  {
    title: '紧急程度',
    dataIndex: 'urgencyText',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'urgencyText' },
  },
  {
    title: '发生时间',
    dataIndex: 'happenTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'happenTime' },
  },
  {
    title: '提交时间',
    dataIndex: 'createTime',
    ellipsis: true,
    width: 180,
    sorter: true,
  },
  {
    title: '提交人',
    dataIndex: 'createByText',
    ellipsis: true,
    width: 100,
  },
  {
    title: '维修开始时间',
    dataIndex: 'repairStartTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'repairStartTime' },
  },
  {
    title: '维修结束时间',
    dataIndex: 'repairEndTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'repairEndTime' },
  },
  {
    title: '维修人',
    dataIndex: 'repairUserIdText',
    ellipsis: true,
    width: 100,
  },
  {
    title: '审批状态',
    dataIndex: 'flowStatusName',
    ellipsis: true,
    width: 100,
  },
]

